import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import org.imraniqbal.engine.GameFrame;
import org.imraniqbal.frogger.FroggerGame;
import org.imraniqbal.frogger.FroggerPanel;
import org.imraniqbal.mouseland.MouselandGame;
import org.imraniqbal.mouseland.MouselandPanel;
import org.imraniqbal.pacman.PacmanGame;
import org.imraniqbal.pacman.PacmanPanel;


public class Main {
	public static void main(String[] args) {
		JFrame female = new JFrame("Game Selector 9000");
		JButton p = new JButton("Play Pacman");
		JButton m = new JButton("Play Mouseland");
		JButton s = new JButton("Play Frogger");
		JLabel monthly = new JLabel("Pick a game");
		p.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				new GameFrame("Pacman",new PacmanPanel(new PacmanGame()));
			}
		});
		m.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				new GameFrame("Mouseland",new MouselandPanel(new MouselandGame()));
			}
		});
		s.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				new GameFrame("Frogger",new FroggerPanel(new FroggerGame()));
			}
		});
		female.setLayout(new BorderLayout());
		female.add(monthly, BorderLayout.NORTH);
		female.add(p, BorderLayout.EAST);
		female.add(m, BorderLayout.CENTER);
		female.add(s, BorderLayout.WEST);
		female.pack();
		female.setVisible(true);
		female.setAlwaysOnTop(true); // Cuz bitches like that
		female.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // kills program when window closes
	}

}
